<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>


<c:if test="${!empty userSection.staff}">
	<h:form>
		<h:panelGrid styleClass="section" columns="1">
			<h:outputText styleClass="sectionHeader" value="Tasks"/>
			<h:commandLink styleClass="menu" action="rental">
				<f:verbatim escape="true">Start a rent transaction</f:verbatim>
			</h:commandLink>
			<h:commandLink styleClass="menu" action="return">
				<f:verbatim escape="true">Process Return</f:verbatim>
			</h:commandLink>
			<h:commandLink styleClass="menu" action="titles">
				<f:verbatim escape="true">Maintain Titles</f:verbatim>
			</h:commandLink>
			<h:commandLink styleClass="menu" action="customers">
				<f:verbatim escape="true">Maintain Customers</f:verbatim>
			</h:commandLink>
			<c:if test="${userSection.staff.manager}">
				<h:commandLink styleClass="menu" action="staffs">
					<f:verbatim escape="true">Maintain Staffs</f:verbatim>
				</h:commandLink>
			</c:if>
			<c:if test="${userSection.staff.seniorManager}">
				<h:commandLink styleClass="menu" action="stores">
					<f:verbatim escape="true">Maintain Stores</f:verbatim>
				</h:commandLink>
			</c:if>
			<c:if test="${userSection.staff.manager}">
				<h:commandLink styleClass="menu" action="reportStock">
					<f:verbatim escape="true">View Stock Report</f:verbatim>
				</h:commandLink>
				<h:commandLink styleClass="menu" action="reportRental">
					<f:verbatim escape="true">View Rental Report</f:verbatim>
				</h:commandLink>
				<h:commandLink styleClass="menu" action="reportStaff">
					<f:verbatim escape="true">View Staff Report</f:verbatim>
				</h:commandLink>
			</c:if>
		</h:panelGrid>
	</h:form>
</c:if>
